import {
    createRouter,
    createWebHashHistory
} from "vue-router";

import Login from '../pages/login.vue'
import Index from '../pages/index.vue'
import Task from '../pages/task.vue'

const routes = [
    {
        path: "/",
        component: Login,
        meta: {
            title: "登录页"
        }
    }, 
    {
        path: "/index",
        component: Index,
        meta: {
            title: "首页"
        }
    },
    {
        path: "/task",
        component: Task,
        meta: {
            title: "自习任务目标"
        }
    }
]

export const router = createRouter({
    history: createWebHashHistory(),
    routes
})

export default router